<style lang='scss' type='stylesheet/scss' scoped>
.as-input {
  margin-bottom: 10px;
}
</style>
<template>
  <as-card :text="text"
           title="绑定 v-model 与 label 后，即可使用。">
    <as-radio v-model="favourite"
              label="fruit">水果</as-radio>
    <as-radio v-model="favourite"
              label="vegetable">蔬菜</as-radio>
  </as-card>
</template>

<script type="text/ecmascript-6">
import { mapGetters } from "vuex";
export default {
  name: "",
  computed: {
    ...mapGetters(["isMobile"])
  },
  data() {
    return {
      favourite: "fruit",
      text: `<template>
   <div>
    <as-radio v-model="favourite" label="fruit">水果</as-radio>
    <as-radio v-model="favourite" label="vegetable">蔬菜</as-radio>
   </div>
 </template>
 <script>
 export default {
   data(){
     return {
       favourite: "fruit"
     }
   }
 }
 <\/script>`
    };
  },
  methods: {}
};
</script>
